<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{crearRelacionDeVariables.page1}" id="page1">
            <ui:html binding="#{crearRelacionDeVariables.html1}" id="html1">
                <ui:head binding="#{crearRelacionDeVariables.head1}" id="head1">
                    <ui:link binding="#{crearRelacionDeVariables.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{crearRelacionDeVariables.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{crearRelacionDeVariables.form1}" id="form1">
                        <ui:hiddenField binding="#{crearRelacionDeVariables.primeraCargadaHiddenField}" id="primeraCargadaHiddenField"/>
                        <ui:button action="#{crearRelacionDeVariables.botonCrearRelacion_action}" binding="#{crearRelacionDeVariables.botonCrearRelacion}"
                            id="botonCrearRelacion" mini="true" primary="true" style="left: 191px; top: 192px; position: absolute; width: 95px" text="Crear relacion"/>
                        <ui:dropDown binding="#{crearRelacionDeVariables.areaDeSolicitudDropDown}" id="areaDeSolicitudDropDown"
                            items="#{crearRelacionDeVariables.sct0020DataProviderParaCrearRelacionDeVariables.options['CDGOAREASLCTUD,CDGOANDDSCRPCION']}"
                            onChange="common_timeoutSubmitForm(this.form, 'areaDeSolicitudDropDown');"
                            style="font-size: 10px; left: 192px; top: 168px; position: absolute" valueChangeListener="#{crearRelacionDeVariables.areaDeSolicitudDropDown_processValueChange}"/>
                        <ui:label binding="#{crearRelacionDeVariables.areaDeSolicitudLabel}" id="areaDeSolicitudLabel"
                            style="left: 72px; top: 168px; position: absolute" text="Area de solicitud"/>
                        <ui:staticText binding="#{crearRelacionDeVariables.titulo3}" id="titulo3"
                            style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px; left: 72px; top: 120px; position: absolute" text="Crear relacion de variables"/>
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <h:panelGrid binding="#{crearRelacionDeVariables.gridPanelParaListBoxs}" columns="3" id="gridPanelParaListBoxs"
                            style="height: 24px; left: 72px; top: 216px; position: absolute" width="648">
                            <ui:listbox binding="#{crearRelacionDeVariables.variablePadreListBox}" id="variablePadreListBox"
                                items="#{crearRelacionDeVariables.sct0032DataProviderCrearDependenciasVariables.options['SCT0001.CDGOVRBLE,SCT0001.CDGOANDNMBREVRBLE']}"
                                label="Variables padres" labelOnTop="true" onChange="common_timeoutSubmitForm(this.form, 'variablePadreListBox');"
                                style="width: 238px" valueChangeListener="#{crearRelacionDeVariables.variablePadreListBox_processValueChange}"/>
                            <ui:listbox binding="#{crearRelacionDeVariables.indicadorActivacionListBox}" id="indicadorActivacionListBox"
                                items="#{crearRelacionDeVariables.sct0028DataProviderCrearDependenciaVariables.options['SCT0028.VLORRSTRCCION,SCT0028.DSCRPCIONRSTRCCION']}"
                                label="Indicador de activacion" labelOnTop="true" style="width: 240px"/>
                            <ui:listbox binding="#{crearRelacionDeVariables.variableHijasListBox}" id="variableHijasListBox"
                                items="#{crearRelacionDeVariables.sct0032DataProviderCrearDependiciaVariable2.options['SCT0001.CDGOVRBLE,SCT0001.CDGOANDNMBREVRBLE']}"
                                label="Variables Hijas" labelOnTop="true" style="width: 238px"/>
                        </h:panelGrid>
                        <ui:button action="#{crearRelacionDeVariables.botonRefrescar_action}" binding="#{crearRelacionDeVariables.botonRefrescar}"
                            id="botonRefrescar" mini="true" primary="true" style="left: 311px; top: 192px; position: absolute; width: 72px" text="Refrescar"/>
                        <h:panelGrid binding="#{crearRelacionDeVariables.gridPanelVariablesGuardadas}" id="gridPanelVariablesGuardadas" style="left: 72px; top: 456px; position: absolute">
                            <ui:alert binding="#{crearRelacionDeVariables.alert1}" id="alert1" style=""/>
                            <ui:table augmentTitle="false" binding="#{crearRelacionDeVariables.table1}" clearSortButton="true" id="table1" lite="true"
                                paginateButton="true" paginationControls="true" style="width: 647px" title="Relaciones creadas" width="300">
                                <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table1");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table1");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table1");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table1");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table1");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table1");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                                <ui:tableRowGroup binding="#{crearRelacionDeVariables.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                    sourceData="#{crearRelacionDeVariables.sct0032DataProviderCrearDepVariableGuardadas}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{crearRelacionDeVariables.tableColumn2}" headerText="Variable padre" id="tableColumn2" sort="SCT0001.NOMBREVRBLEPDRE">
                                        <ui:staticText binding="#{crearRelacionDeVariables.staticText2}" id="staticText2" style="font-size: 10px" text="#{currentRow.value['SCT0001.NOMBREVRBLEPDRE']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{crearRelacionDeVariables.tableColumn1}" headerText="Codigo variable padre" id="tableColumn1" sort="SCT0032.CDGOVRBLEPDRE">
                                        <ui:staticText binding="#{crearRelacionDeVariables.staticText1}" id="staticText1" text="#{currentRow.value['SCT0032.CDGOVRBLEPDRE']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{crearRelacionDeVariables.tableColumn3}" headerText="Indicador" id="tableColumn3" sort="SCT0032.INDCDORACTVDOR">
                                        <ui:staticText binding="#{crearRelacionDeVariables.staticText3}" id="staticText3" style="font-size: 10px" text="#{crearRelacionDeVariables.nombreIdentificador}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{crearRelacionDeVariables.tableColumn5}" headerText="Variable hija" id="tableColumn5" sort="NOMBREVRBLEHJO">
                                        <ui:staticText binding="#{crearRelacionDeVariables.staticText5}" id="staticText5" style="font-size: 10px" text="#{currentRow.value['NOMBREVRBLEHJO']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{crearRelacionDeVariables.tableColumn4}" headerText="Codigo variable hijo" id="tableColumn4" sort="SCT0032.CDGOVRBLEHJO">
                                        <ui:staticText binding="#{crearRelacionDeVariables.staticText4}" id="staticText4" text="#{currentRow.value['SCT0032.CDGOVRBLEHJO']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn align="center" binding="#{crearRelacionDeVariables.tableColumn6}" id="tableColumn6">
                                        <ui:button action="#{crearRelacionDeVariables.button1_action}" binding="#{crearRelacionDeVariables.button1}"
                                            id="button1" mini="true" primary="true" text="Eliminar"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                                <ui:staticText binding="#{crearRelacionDeVariables.titulo2}" id="titulo2"
                                    style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px" text="Captura de solicitud"/>
                            </ui:table>
                        </h:panelGrid>
                        <ui:button action="#{crearRelacionDeVariables.menu_action}" binding="#{crearRelacionDeVariables.menu}" id="menu" immediate="true"
                            mini="true" primary="true" style="left: 71px; top: 192px; position: absolute; width: 71px" text="Cerrar"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
